package com.hdoit.apollo.logical.inStock.dao.impl;


import org.springframework.stereotype.Component;

import com.hdoit.apollo.logical.inStock.dao.IInStockShowDao;
import com.hdoit.apollo.logical.inStock.model.InStockShow;
import com.tennetcn.data.dao.base.ISqlExpression;
import com.tennetcn.data.dao.base.impl.SuperDao;
import com.tennetcn.data.utils.SqlExpressionFactory;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 11:58:41
 * @comment
 */
@Component
public class InStockShowDaoImpl extends SuperDao<InStockShow> implements IInStockShowDao{

	@Override
	public boolean deleteInStockShow(String inStockId) {
		ISqlExpression sqlExpression = SqlExpressionFactory.createExpression();
		sqlExpression.addBody("delete from",InStockShow.class)
					.andWhere("inStockId=#{inStockId}")
					.setParam("inStockId", inStockId);
		return delete(sqlExpression)>=0;
	}
}
